home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.misc
- Path: leeds.ac.uk!news
- From: csxjmo@scs.leeds.ac.uk (J M Oldak)
- Subject: Re: Acorn RiscPC --- a thought?
- Message-ID: <1996Feb12.152844.28437@leeds.ac.uk>
- NNTP-Posting-Host: csgi47.leeds.ac.uk
- Organization: The University of Leeds, School of Computer Studies
- Date: Mon, 12 Feb 1996 15:28:44 +0000 (GMT)
- References: <1996Feb5.164323.465@rmcs.cranfield.ac.uk>
- <4f5qvt$1hm@vulture.dmem.strath.ac.uk>
- <1996Feb8.124744.14853@leeds.ac.uk>
- <4fdglm$b8s@vulture.dmem.strath.ac.uk>
-
- Neil Brendan Clark writes:
-
- |> J M Oldak (That's me) wrote:
- |> >
- |> >There is nothing wrong with cooperative multitasking, when implemented
- |> >properly.
- |>
- |> You are wrong. With cooperative multitasking, the current program will soak
- |> up all the CPU time it can get until it voluntarily relinquishes the CPU,
- |> either explicitly with a "yield()" type call or by calling certain system
- |> functions. This has several implications; a runaway task can hog the entire
- |> computer, requiring a reboot. It is more difficult to program well, as
- |> you have to explicitly decide when to give up the CPU. Busy tasks have
- |> a hard time of it too; imagine you decide to, say yield every 1000 iterations
- |> of some loop. On a slow machine, this may be fine in terms of user response,
- |> but on a faster machine, you'll be wasting CPU time by yielding too often.
- |> So the programmer sets up timing mechanisms to help? Fine. More CPU time,
- |> more hassle, more bugs. Any notion of the system of being remotely real-time
- |> is effectively quashed.
-
- On the plus side - Co-operative multitasking means that the programmer has to
- be aware of the efficiency of the program. This means that the program can use
- little or no processor time if it isn't doing much. For example, a desktop
- clock only has to bother the OS every second, the rest of the time it can use
- no time at all. Furthermore, there are times when single tasking something is
- an advantage. If you are, say, viewing an MPEG (possibly a bad example...),
- why not let the thing single task? There are times when you want as fast a
- response as possible...
-
- |> >whereas Risc OS (Acorn's operating system) allowes all
- |> >tasks to have processor time.
- |>
- |> How does it do this? Does it force a task off the CPU at certain time
- |> intervals?
-
- No, it just let's all tasks that want processor time have it. Win 3.1 (and Win
- 95 with old apps) does not.
-
- |> >This means I can run a DTP program,
- |>
- |> Shouldn't need any CPU unless it is being used at the time...
-
- Exactly, with a pre-emptive system it would be getting some!
-
- |> >command shell,
- |>
- |> See above.
-
- See above...
-
- |> >desktop utilities,
- |>
- |> See above.
-
- ditto...
-
- |> >be printing in the background,
- |>
- |> And quite rightly too! This is not difficult, as printing generally involves
- |> little CPU time, unless you are interpreting PostScript with the CPU. The
- |> printer goes much slower than the CPU after all. OK, you have this one.
-
- gee, thanks!
-
- |> >viewing JPEG's (as part of the OS - without de-compressing)
- |>
- |> Accuse me of pushing technicalities here, but the JPEG still needs to be
- |> decrompressed, albeit by hardware(?). A cool thing, for sure, but ultimately
- |> how useful? My P75 running FreeBSD decompresses a 640x512 JPEG in 0.8 seconds.
-
- During that 0.8 seconds - does the machine multitask?
-
- If so - why?
-
- |> >without things grinding
- |>
- |> Why should things grind when there are only two tasks desiring CPU use at
- |> one time, one of which is a printer spooler?
-
- You could be using them all!
-
- You could be copying/compressing files etc in the command shell, while doing a
- drag & drop OLE from your Vector drawing (or JPEG decompressor) into the DTP
- program...
-
- |> >(and all in 24 bit colour....)
- |>
- |> Yes, this is good. I *did* say they were nice machines though ;-)
-
- To be honest - the 1024*768 in 32K colours looks nicer...
-
- |> >Admittedly - the OS has lacked development recently, but there is a new version
- |> >coming out soon,
- |>
- |> Hopefully with proper multitasking. I think part of the problem with people
- |> who claim that you don't need pre-emptive MT is that they have never really
- |> used it before. Once you have used such a system, there is no going back.
-
- Untrue!
-
- I use SGI's in the university with X windows. They have more power than my Risc
- PC, but in general use they run slower, because background tasks are taking
- time from my foreground ones. Admittedly, ithas to be pre-emptive for it to be
- a multi-access system, but I'm talking about what it's like sitting at one,
- disregarding other people...
-
- |> >together with new processor cards which should deliver up to
- |> >260 MIPS. That's faster than the fastest PC (and the fastest Amiga)...
- |>
- |> Is this the StrongARM chip? If so, then that is very good. Get a decent OS
- |> and you should be flying. NetBSD + StrongARM would be a formidable combination.
-
- It is the StrongARM chip...
-
- Joe
- --
- ___
- (_| Maintainer of http://www.tardis.ed.ac.uk/~joe/arc.html
- _|) Acorn games homepage
- (_|\
-